package service.backstage.impl;

import dao.backstage.GoodsDao;
import dao.backstage.impl.GoodsDaoImpl;
import service.backstage.deleteGoodsService;


public class deleteGoodsServiceImpl implements deleteGoodsService {
    GoodsDao goodsDao;
    public deleteGoodsServiceImpl(){

        goodsDao = new GoodsDaoImpl();
    }

    @Override
    public int deleteGoods(String goods_name) {
        int i = goodsDao.removeGoods(goods_name);
        return i;
    }
}